package com.swss.g.user.bean;

import java.util.List;

import com.swss.g.dept.bean.Dept;

/**
 * GUsers entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class User implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer id;
	private String userName;
	private String password;
	private String accperName;
	private String isKey;
	private String sn;
	private String pin;
	private String standBy1;
	private String standBy2;
	private String standBy3;
	private String standBy4;
	private String standBy5;
	private Integer fin;

	private Role role;
	private List<Role> roleList;
	private List<Popedom> popedomList;

	private String deptNo;
	private Dept dept;

	// Constructors

	/** default constructor */
	public User() {
	}

	/** full constructor */
	public User(String userName, String password, String accperName,
			String isKey, String sn, String pin, String standBy1,
			String standBy2, String standBy3, String standBy4, String standBy5,
			Integer fin) {
		this.userName = userName;
		this.password = password;
		this.accperName = accperName;
		this.isKey = isKey;
		this.sn = sn;
		this.pin = pin;
		this.standBy1 = standBy1;
		this.standBy2 = standBy2;
		this.standBy3 = standBy3;
		this.standBy4 = standBy4;
		this.standBy5 = standBy5;
		this.fin = fin;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		// MD5 md5 = new MD5();
		// this.password = md5.getMD5Str(password);
		this.password = password;
	}

	public String getAccperName() {
		return this.accperName;
	}

	public void setAccperName(String accperName) {
		this.accperName = accperName;
	}

	public String getIsKey() {
		return this.isKey;
	}

	public void setIsKey(String isKey) {
		this.isKey = isKey;
	}

	public String getSn() {
		return this.sn;
	}

	public void setSn(String sn) {
		this.sn = sn;
	}

	public String getPin() {
		return this.pin;
	}

	public void setPin(String pin) {
		this.pin = pin;
	}

	public String getStandBy1() {
		return this.standBy1;
	}

	public void setStandBy1(String standBy1) {
		this.standBy1 = standBy1;
	}

	public String getStandBy2() {
		return this.standBy2;
	}

	public void setStandBy2(String standBy2) {
		this.standBy2 = standBy2;
	}

	public String getStandBy3() {
		return this.standBy3;
	}

	public void setStandBy3(String standBy3) {
		this.standBy3 = standBy3;
	}

	public String getStandBy4() {
		return this.standBy4;
	}

	public void setStandBy4(String standBy4) {
		this.standBy4 = standBy4;
	}

	public String getStandBy5() {
		return this.standBy5;
	}

	public void setStandBy5(String standBy5) {
		this.standBy5 = standBy5;
	}

	public List<Role> getRoleList() {
		return roleList;
	}

	public void setRoleList(List<Role> roleList) {
		this.roleList = roleList;
	}

	public List<Popedom> getPopedomList() {
		return popedomList;
	}

	public void setPopedomList(List<Popedom> popedomList) {
		this.popedomList = popedomList;
	}

	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	public Dept getDept() {
		return dept;
	}

	public void setDept(Dept dept) {
		this.dept = dept;
	}

	public String getDeptNo() {
		return deptNo;
	}

	public void setDeptNo(String deptNo) {
		this.deptNo = deptNo;
	}

	public Integer getFin() {
		return fin;
	}

	public void setFin(Integer fin) {
		this.fin = fin;
	}

}